﻿using System;
using System.Text;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using BCDto.OA.TeamWork.TeamWorkAttachment;
using BCDto.OA.TeamWork.TeamWorkParticipant;

namespace BCDto.OA.TeamWork.TeamWork
{
    /// <summary>
    /// 协同办公
    /// </summary>
    public class TeamWorkRequestDto
    {
        /// <summary>
        /// 协同办公分类Id
        /// </summary>		
        public int TeamWorkCategoryId { get; set; }
        /// <summary>
        /// 协同办公分类Id
        /// </summary>		
        public string TeamWorkCategoryCode { get; set; }
        /// <summary>
        /// 工作标题
        /// </summary>		
        [Display(Name = "工作标题")]
        [StringLength(50, MinimumLength = 6, ErrorMessage = "{0} 最少输入6位字符，最多输入应小于50位字符")]
        public string WorkTitle { get; set; }
        /// <summary>
        /// 工作内容
        /// </summary>		
        public string WorkContent { get; set; }
        /// <summary>
        /// 引用映射编号
        /// </summary>
        public string ReferenceNo { get; set; }
        /// <summary>
        /// 协同办公参与人列表
        /// </summary>
        public List<TeamWorkParticipantRequestDto> Participants { get; set; }
        /// <summary>
        /// 协同办公附件列表
        /// </summary>
        public List<TeamWorkAttachmentRequestDto> Attachments { get; set; }
    }
}
